//
//  CHStatusBarUtil.m
//  proofSdkProj
//
//  Created by cyptt on 2022/3/10.
//

#import "CHStatusBarUtil.h"

@implementation CHStatusBarUtil
+ (CGFloat)getStatusBarHight {
   float statusBarHeight = 0;
   if (@available(iOS 13.0, *)) {
       UIStatusBarManager *statusBarManager = [UIApplication sharedApplication].windows.firstObject.windowScene.statusBarManager;
       statusBarHeight = statusBarManager.statusBarFrame.size.height;
   }
   else {
       statusBarHeight = [UIApplication sharedApplication].statusBarFrame.size.height;
   }
   return statusBarHeight;
}


@end
